#include "stdafx.h"
#include "Test.h"
#include "TestMgr.h"

using namespace Base::UnitTest;

Test::Test(CallBack callBack)
    : m_callBack(callBack)
{
    TestMgr::get()->addTest(this);
}

Test::~Test()
{
}

void
Test::run()
{
    if (m_callBack)
        m_callBack();
}